package edu.calvin.djs32.cs214.interpreters.calculator.primitives;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import edu.calvin.cs214.hobbes2008.IntegerTIR;


public class MinPrimitiveTest {
	
	@Test
	public void shouldApplyMin() {
	  assertEquals(new IntegerTIR(3), new MinPrimitive().apply(new IntegerTIR(4), new IntegerTIR(3)));
	  assertEquals(new IntegerTIR(10), new MinPrimitive().apply(new IntegerTIR(100), new IntegerTIR(10)));
	  assertEquals(new IntegerTIR(3), new MinPrimitive().apply(new IntegerTIR(9), new IntegerTIR(3)));
	}

}
